package mulegame;
/**
 * Image paths for different tile types
 * 
 * @author AREA 29
 *
 */

public enum TileType {
	
	PLAIN (2, 3, 1, "src/mulegame/Images/P1F.jpg", 0),
	RIVER (4, 2, 0, "src/mulegame/Images/R1F.jpg", 1),
	M1 (1, 1, 2, "src/mulegame/Images/M1F.jpg", 2),
	M2 (1, 1, 3, "src/mulegame/Images/M2F.jpg", 3),
	M3 (1, 1, 4, "src/mulegame/Images/M3F.jpg", 4),
	TOWN (0, 0, 0, "src/mulegame/Images/TOWN.jpg", 5); //there's no town jpg yet, MUST BE UPDATED
	
	/**
	 * sets food, energy, and ore levels and gives display of given path name 
	 */
	private final int foodProd, energyProd, oreProd, ident;
	private String imagePath;
	TileType(final int food, final int energy, final int ore, final String imageP, final int ident) {
		foodProd = food;
		energyProd = energy;
		oreProd = ore;
		imagePath = imageP;
		this.ident = ident;
	}
	
	/**
	 * return food produced
	 * 
	 * @return foodProd
	 */
	public int getFoodProd(){
		return foodProd;
	}
	
	/**
	 * returns energy produced
	 * 
	 * @return energyProd
	 */
	public int getEnergyProd(){
		return energyProd;
	}
	
	/**
	 * returns ore produced
	 *
	 * @return oreProd
	 */
	public int getOreProd(){
		return oreProd;
	}
	
	/**
	 * return image path
	 * 
	 * @return imagePath
	 */
	public String getImagePath(){
		return imagePath;
	}
	
	/**
	 * sets image path
	 * 
	 * @param imageP
	 */
	// in order to change between WITH-MULE/WITHOUT-MULE icon
	public void setImagePath(final String imageP){
		imagePath = imageP;
	}
	
	public String toString(){
         return Integer.toString(ident) + " : " + getImagePath();
	}
}
